package com.igeekhome.mapper;

import com.igeekhome.pojo.WOrderList;
import com.igeekhome.pojo.WOrderListExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Romeo
 */
public interface WOrderListMapper {
    int countByExample(WOrderListExample example);

    int deleteByExample(WOrderListExample example);

    int deleteByPrimaryKey(Integer orderid);

    int insert(WOrderList record);

    int insertSelective(WOrderList record);

    List<WOrderList> selectByExample(WOrderListExample example);

    WOrderList selectByPrimaryKey(Integer orderid);

    int updateByExampleSelective(@Param("record") WOrderList record, @Param("example") WOrderListExample example);

    int updateByExample(@Param("record") WOrderList record, @Param("example") WOrderListExample example);

    int updateByPrimaryKeySelective(WOrderList record);
    
    /**
    * @author 汪璇
    * @Description 根据运单号更新订单
    * @Param [record]
    * @Return int
    **/
    int updateByWaybillIdSelective(WOrderList record);

    int updateByPrimaryKey(WOrderList record);
    
    /**
    * @Author 汪璇
    * @Description 根据waybaillId 改变订单表状态为删除
    * @Param [waybaillId] 运单id
    * @Return int
    **/
    int updateStatusByWaybilId(Integer waybaillId);
}